<include file="Admin/Public/Header" />
<script src="__SCRIPT__/common.js" type="text/javascript"></script>
<table width="100%" height="31px" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
    <tr>
        <td height="31"><div class="titlebt">内容列表</div></td>
    </tr>
</table>

<div class="main">
    <div class="operate">
        <div class="left">
            <notempty name="issort">
            <input type="button" class="btn_blue" onclick="form_do.submit();" value="更新排序">
            </notempty>
            <input type="button" onclick="window.open('{:U('Admin/Content/AddContent')}','main')" target="main" class="btn_blue" value="添加">
        </div>
        <div class="left_pad">
            <form id="search" method="get" action="{:U('Admin/Content/Content')}">
                标题：<input type="text" name="keyword" title="关键字" class="inp_default" value="{$keyword}">&nbsp;
                <!-- 分类筛选 -->
                栏目筛选：
                <select id="select" name="category">
                        <option value="0" selected>全部</option>
                    <volist name="category" id="v">
                        <option value="{$v.id}" {$v.selected}>{$v.name}</option>
                    </volist>
                </select>
                <input type="submit" class="btn_blue" value="查  询">
            </form>
        </div>
    </div>
    <div class="list">
        <form action="{:U('News/Lists', 'do=sort')}" method="post" id="form_do" name="form_do">
            <table width="100%">
                <tr>
                    <th>编号</th>
                    <th>标题</th>
                    <th>所属栏目</th>
                    <th>发布时间</th>
                    <th>修改时间</th>
                    <th>操作</th>
                </tr>

                <empty name="list">
                    <tr><td colspan="9">本区域暂无数据显示...</td></tr>
                    <else />
                    <volist name='list' id='v'>
                        <tr>
                            <td>{$v.id}</td>
                            <td>
                                <a href="{$v.news_link}" target="_blank" >{$v.title}</a>
                            </td>
                            <td>{$v.category_name}</td>
                            <td>{$v.create_time|date='Y-m-d H:i:s', ###}</td>
                            <td>{$v.update_time|date='Y-m-d H:i:s', ###}</td>
                            <td>
                                <a href="{:U('Admin/Content/EditContent', array('id' => $v['id']))}">编辑</a>
                                <a href="{:U('Admin/Content/DeleteContent', array('id' => $v['id']))}" class="delete-one">删除</a>
                            </td>
                        </tr>
                    </volist>
                </empty>

            </table>
        </form>
    </div>
    <div class="page">
        {$page}
    </div>
</div>
<include file="Admin/Public/Copyright" />
<script type="text/javascript">
    $('.delete-one').click(function(){
        if( ! window.confirm('确定要删除此内容吗？') ){
            return false;
        }
    });
</script>
</body>
</html>

